<br/>

<h2><?php echo $page['name']; ?></h2>

<br/>

<form action="<?php echo site_url('admin/editPage/'. $page['id']); ?>" method="post">
<table>
	<tr>
		<td>Name</td>
		<td><input type="text" name="name" value="<?php echo $page['name'] ?>" /></td>
	</tr>
	<tr>
		<td>Title</td>
		<td><input type="text" name="title" value="<?php echo $page['title']; ?>" /></td>
	</tr>
	<tr>
		<td colspan="2">Content</td>
	</tr>
	<tr>
		<td colspan="2">
			<textarea id="editor1" name="content" cols="50" rows="50">
				<?php echo $page['content']; ?>
			</textarea>
		</td>
					<script type="text/javascript">
			//<![CDATA[

				CKEDITOR.replace( 'editor1',
					{
						fullPage : true,
						extraPlugins : 'docprops'
					});

			//]]>
			</script>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" name="submitBtn" value="Submit" />
			<input type="reset" name="reset" value="Reset" />
		</td>
	</tr>
</table>
</form>